package com.echo.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.echo.entity.ExamAnalysis;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
//根据用户的做题情况返回
@Data
public class ExamRecordAnalysisVo {
    private static final long serialVersionUID = 1L;
    /**
     * 考试记录表的主键
     */
    @TableId(value = "exam_record_id", type = IdType.AUTO)
    private String examRecordId;

    /**
     * 考试参与者的用户id
     */
    private String examJoinerId;

    /**
     * 参加考试的日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date examJoinDate;

    private ExamAnalysis examAnalysis;
    /**
     * 完成考试所用的时间,单位分钟
     */
    private Integer examTimeCost;

    /**
     * 参与考试的实际得分
     */
    private Integer examJoinScore;

    /**
     * 考试结果的等级
     */
    private Integer examResultLevel;

    private String answerOptionIds;

    private String examId;

    @Override
    public String toString() {
        return "ExamRecord{" +
                "examRecordId=" + examRecordId +
                ", examJoinerId=" + examJoinerId +
                ", examJoinDate=" + examJoinDate +
                ", examTimeCost=" + examTimeCost +
                ", examJoinScore=" + examJoinScore +
                ", examResultLevel=" + examResultLevel +
                ", answerOptionIds=" + answerOptionIds +
                ", examId=" + examId +
                "}";
    }
}
